<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="google-site-verification" content="xBT4GhYoi5qRD5tr338pgPM5OWHHIDR6mNg1a3euekI" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="Tom的博客">
    <meta name="keyword"  content="">
    <link rel="shortcut icon" href="/img/favicon.ico">

    <title>
        
        Linux下使用hexo+vscode+markdown编写博客 - Tom的博客
        
    </title>

    <!-- Custom CSS -->
    
<link rel="stylesheet" href="/css/aircloud.css">

    
<link rel="stylesheet" href="/css/gitment.css">

    <!--<link rel="stylesheet" href="https://imsun.github.io/gitment/style/default.css">-->
    <link href="//at.alicdn.com/t/font_620856_pl6z7sid89qkt9.css" rel="stylesheet" type="text/css">
    <!-- ga & ba script hoook -->
    <script></script>
<meta name="generator" content="Hexo 5.4.0"></head>

<body>

<div class="site-nav-toggle" id="site-nav-toggle">
    <button>
        <span class="btn-bar"></span>
        <span class="btn-bar"></span>
        <span class="btn-bar"></span>
    </button>
</div>

<div class="index-about">
    <i> 间歇性壮志凌云, 持续性混吃等死 </i>
</div>

<div class="index-container">
    
    <div class="index-left">
        
<div class="nav" id="nav">
    <div class="avatar-name">
        <div class="avatar ">
            <img src="/img/avatar.jpg" />
        </div>
        <div class="name">
            <i>Tom</i>
        </div>
    </div>
    <div class="contents" id="nav-content">
        <ul>
            <li >
                <a href="/">
                    <i class="iconfont icon-shouye1"></i>
                    <span>主页</span>
                </a>
            </li>
            <li >
                <a href="/tags">
                    <i class="iconfont icon-biaoqian1"></i>
                    <span>标签</span>
                </a>
            </li>
            <li >
                <a href="/archives">
                    <i class="iconfont icon-guidang2"></i>
                    <span>存档</span>
                </a>
            </li>
            <li >
                <a href="/about/">
                    <i class="iconfont icon-guanyu2"></i>
                    <span>关于</span>
                </a>
            </li>
            
            <li>
                <a id="search">
                    <i class="iconfont icon-sousuo1"></i>
                    <span>搜索</span>
                </a>
            </li>
            
        </ul>
    </div>
    
        <div id="toc" class="toc-article">
    <ol class="toc"><li class="toc-item toc-level-3"><a class="toc-link" href="#hexo"><span class="toc-text">hexo</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%AE%89%E8%A3%85nodejs%E5%92%8Cgit"><span class="toc-text">安装nodejs和git</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%AE%89%E8%A3%85hexo"><span class="toc-text">安装hexo</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E9%85%8D%E7%BD%AEhexo"><span class="toc-text">配置hexo</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E4%BD%BF%E7%94%A8hexo"><span class="toc-text">使用hexo</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E8%AE%BE%E7%BD%AEgithub"><span class="toc-text">设置github</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E8%AE%BE%E7%BD%AEgitee"><span class="toc-text">设置gitee</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E8%AE%BE%E7%BD%AEcoding"><span class="toc-text">设置coding</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%8D%9A%E5%AE%A2%E6%96%87%E4%BB%B6%E7%9A%84%E5%A4%87%E4%BB%BD"><span class="toc-text">博客文件的备份</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#markdown"><span class="toc-text">markdown</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#Paste-Image-%E8%AE%BE%E7%BD%AE"><span class="toc-text">Paste Image 设置</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#git%E8%AE%BE%E7%BD%AE"><span class="toc-text">git设置</span></a><ol class="toc-child"><li class="toc-item toc-level-5"><a class="toc-link" href="#%E8%BF%9C%E7%A8%8B%E4%BB%93%E5%BA%93%E8%AE%BE%E7%BD%AE"><span class="toc-text">远程仓库设置</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#%E6%9C%AC%E5%9C%B0%E4%BB%93%E5%BA%93%E8%AE%BE%E7%BD%AE"><span class="toc-text">本地仓库设置</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#%E8%87%AA%E5%8A%A8%E4%B8%8A%E4%BC%A0%E8%84%9A%E6%9C%AC"><span class="toc-text">自动上传脚本</span></a></li></ol></li></ol></li></ol>
</div>
    
</div>


<div class="search-field" id="search-field">
    <div class="search-container">
        <div class="search-input">
            <span id="esc-search"> <i class="icon-fanhui iconfont"></i></span>
            <input id="search-input"/>
            <span id="begin-search">搜索</span>
        </div>
        <div class="search-result-container" id="search-result-container">

        </div>
    </div>
</div>

        <div class="index-about-mobile">
            <i> 间歇性壮志凌云, 持续性混吃等死 </i>
        </div>
    </div>
    
    <div class="index-middle">
        <!-- Main Content -->
        


<div class="post-container">
    <div class="post-title">
        Linux下使用hexo+vscode+markdown编写博客
    </div>

    <div class="post-meta">
        <span class="attr">发布于：<span>2019-08-04 18:46:34</span></span>
        
        <span class="attr">标签：/
        
        <a class="tag" href="/tags/#linux" title="linux">linux</a>
        <span>/</span>
        
        
        </span>
        <span class="attr">访问：<span id="busuanzi_value_page_pv"></span>
</span>
</span>
    </div>
    <div class="post-content no-indent">
        <h3 id="hexo"><a href="#hexo" class="headerlink" title="hexo"></a>hexo</h3><h4 id="安装nodejs和git"><a href="#安装nodejs和git" class="headerlink" title="安装nodejs和git"></a>安装nodejs和git</h4><ul>
<li>Windows到<a target="_blank" rel="noopener" href="http://nodejs.cn/download/">官网</a>下载安装包</li>
<li>linux安装nodejs：</li>
</ul>
<figure class="highlight sh"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># linux安装nodejs</span></span><br><span class="line">sudo apt install nodejs npm</span><br><span class="line"></span><br><span class="line"><span class="comment"># 一般安装好的npm和nodejs都不是最新版本，所以先升级一下</span></span><br><span class="line">sudo npm install npm@latest -g</span><br><span class="line">sudo npm install n -g</span><br><span class="line">sudo n lts</span><br><span class="line"></span><br><span class="line"><span class="comment"># npm换淘宝源</span></span><br><span class="line">sudo npm install -g cnpm --registry=https://registry.npm.taobao.org</span><br></pre></td></tr></table></figure>
<h4 id="安装hexo"><a href="#安装hexo" class="headerlink" title="安装hexo"></a>安装hexo</h4><figure class="highlight sh"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo cnpm install -g hexo-cli</span><br></pre></td></tr></table></figure>
<h4 id="配置hexo"><a href="#配置hexo" class="headerlink" title="配置hexo"></a>配置hexo</h4><figure class="highlight sh"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># 初始化一个目录</span></span><br><span class="line">hexo init blog</span><br><span class="line"><span class="built_in">cd</span> blog</span><br><span class="line">cnpm install</span><br><span class="line"></span><br><span class="line"><span class="comment"># 到hexo主题网站选择一个喜欢的主题，我这里选的是aircloud，把主题clone到themes文件夹</span></span><br><span class="line">git <span class="built_in">clone</span> https://github.com/aircloud/hexo-theme-aircloud.git themes/aircloud</span><br></pre></td></tr></table></figure>
<ul>
<li>配置_config.yaml可以参考以下设置</li>
</ul>
<p><a target="_blank" rel="noopener" href="https://github.com/aircloud/hexo-aircloud-blog/blob/master/_config.yml">官方Demo</a></p>
<p>在文件最后设置需要同步的仓库，可以设置多个：<br><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">deploy:</span></span><br><span class="line">    <span class="attr">type:</span> <span class="string">git</span></span><br><span class="line">    <span class="attr">repo:</span></span><br><span class="line">        <span class="attr">github:</span> <span class="string">your</span> <span class="string">github</span> <span class="string">repo</span> <span class="string">url</span></span><br><span class="line">        <span class="attr">gitee:</span> <span class="string">your</span> <span class="string">gitee</span> <span class="string">repo</span> <span class="string">url</span></span><br><span class="line">        <span class="attr">coding:</span> <span class="string">your</span> <span class="string">conding</span> <span class="string">repo</span> <span class="string">url</span></span><br></pre></td></tr></table></figure></p>
<ul>
<li>其他功能的配置</li>
</ul>
<p>请参考<a target="_blank" rel="noopener" href="https://github.com/aircloud/hexo-theme-aircloud">官方文档</a></p>
<h4 id="使用hexo"><a href="#使用hexo" class="headerlink" title="使用hexo"></a>使用hexo</h4><figure class="highlight sh"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># 新建文章</span></span><br><span class="line">hexo new filename	<span class="comment"># 它会在source/_posts文件夹创建一个新的markdown文件，在这里面写文章就好了</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 清空缓存，每次生成前最好执行一下</span></span><br><span class="line">hexo clean</span><br><span class="line"></span><br><span class="line"><span class="comment"># 生成静态文件</span></span><br><span class="line">hexo g</span><br><span class="line"></span><br><span class="line"><span class="comment"># 启动本地服务器，每次发布前可以在本地看一下效果</span></span><br><span class="line">hexo s</span><br><span class="line"></span><br><span class="line"><span class="comment"># 发布到远程仓库前，需要安装以下插件</span></span><br><span class="line">cnpm install hexo-deployer-git --save</span><br><span class="line"></span><br><span class="line"><span class="comment"># 发布到远程仓库</span></span><br><span class="line">hexo d</span><br></pre></td></tr></table></figure>
<h4 id="设置github"><a href="#设置github" class="headerlink" title="设置github"></a>设置github</h4><ul>
<li>注册github账号</li>
<li>创建一个username.github.io的仓库</li>
<li>创建sshkey</li>
</ul>
<figure class="highlight sh"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">ssh-keygen -t rsa -C <span class="string">&#x27;your email&#x27;</span></span><br><span class="line"><span class="comment"># 创建好后到家目录下的.ssh目录找到id_rsa.pub复制里面的公钥，然后到github里面添加sshkey，就可以不需要密码上传了</span></span><br></pre></td></tr></table></figure>
<ul>
<li>在github设置里添加自己的sshkey</li>
<li>绑定自己的域名</li>
</ul>
<p>发布好之后就可以通过<em><a target="_blank" rel="noopener" href="https://username.github.io">https://username.github.io</a></em>访问了，但是很多人希望绑定自己的域名，到本地的blog/source文件夹下创建CNAME文件，里面写上需要绑定的域名。发布一下，然后到域名服务商设置CNAME，就可以使用自己的域名访问了。</p>
<h4 id="设置gitee"><a href="#设置gitee" class="headerlink" title="设置gitee"></a>设置gitee</h4><ul>
<li>注册gitee账号</li>
<li>创建一个和自己名字相同的仓库</li>
<li>发布后，进入仓库，点击服务-pages就可以设置好博客了</li>
<li>gitee和github有这样几个区别<ul>
<li>gitee访问速度快，github比较慢</li>
<li>gitee每次发布都需要到pages页面下更新，github不需要</li>
<li>gitee不能绑定自己的域名，github可以</li>
</ul>
</li>
<li>gitee有一个gitee pages Pro可以解决它的所有问题，但是99/年</li>
</ul>
<h4 id="设置coding"><a href="#设置coding" class="headerlink" title="设置coding"></a>设置coding</h4><p>最近发现了一个代码托管网站<a target="_blank" rel="noopener" href="https://coding.net/">coding</a>，它用来做博客比上面两个都要合适，因为它有自动发布，在国内访问速度比较快，可以绑定自己的域名（无需备案），并且完全免费。</p>
<p>用法和上面两个完全相同，创建仓库后进入仓库，点击持续部署-静态网站，就可以设置好博客了。</p>
<blockquote>
<p>这三个代码托管网站，我推荐在github和coding上都部署一个，防止其中一个突然挂了，gitee那个太麻烦了，就不考虑了。</p>
</blockquote>
<h4 id="博客文件的备份"><a href="#博客文件的备份" class="headerlink" title="博客文件的备份"></a>博客文件的备份</h4><p>我们要居安思危，为了防止哪天我们的电脑直接挂了，然后带走我们所有的博客，所以我们要备份我们的hexo文件夹。上传到远程仓库的那些只是渲染完成之后的网页，并不是我们编写的markdown文件。如果你使用的是Windows系统，我推荐使用坚果云进行同步，直接把整个文件夹同步就好了。当然，有些文件夹是不用同步的，坚果云可以设置忽略文件夹，不用同步的文件夹有public和.deploy_git. 但是我使用的是Linux，而Linux版的坚果云不可以设置忽略文件夹，所以我就直接使用git进行备份了。</p>
<h3 id="markdown"><a href="#markdown" class="headerlink" title="markdown"></a>markdown</h3><p>markdown是个好东西，Linux上优秀的markdown编辑器也不少，比如typora就有Linux版本的，但是在我的电脑上好像有点bug，无法右键打开文件，所以我就选择了vscode。<br>我在vscode上安装的插件主要有:</p>
<ul>
<li>Markdown All in One(集成了markdown的一些功能)</li>
<li>Markdown Preview Enhanced(预览markdown文件)</li>
<li>Paste Image(自定义粘贴图片的链接的)</li>
<li>One Dark Pro(主题，好看)</li>
<li>scrolloff(当你打字的时候，保证你的光标不会移动到最上面或最下面让你的目光集中在中间的位置)</li>
<li>Power Mode(打字的时候有特效,好看)</li>
</ul>
<p><img src="https://yaozhijin.coding.net/p/img/git/raw/master/gif/demo-presets-particles.gif" alt=""></p>
<p>编写markdown文件最麻烦的还是图片的插入，最好的解决方案就是图床，Windows下有一款很好用的图床软件叫Picgo，在Linux下也有，但是里面提供的图床真正稳定免费的只有github图床，但是github图床访问又太慢了，所以我就放弃了使用Picgo。</p>
<p>其实只要是可以使用git的代码托管网站都可以作为我们的图床，它们的图片产生的外链前面都是一样的，只有文件名不同，我们只需要使用<em>Paste Image</em>插件将图片保存到电脑里的同一个目录，然后设置好图片链接的格式，最后将目录里的图片全都push到远程仓库就可以访问了。</p>
<p>这样的好处是本地也会保存有一份图片副本,如果你的远程仓库挂了,图片也不会丢失,你可以寻找其他的替代方案,到时候批量把链接改掉就可以直接访问了.</p>
<h4 id="Paste-Image-设置"><a href="#Paste-Image-设置" class="headerlink" title="Paste Image 设置"></a>Paste Image 设置</h4><p>先说Paste Image的设置，点击vscode左下角的小齿轮,选择设置-扩展-Paste Image Configuration, 需要更改的只有两项:</p>
<ul>
<li>Paste Image: Insert Pattern(粘贴的链接格式,your_url的获取方法见本地仓库设置)<br>  ${imageSyntaxPrefix}your_url${imageFileName}${imageSyntaxSuffix}</li>
<li>Paste Image: Path(图片在本地保存的绝对路径)</li>
</ul>
<p>这样你每次复制图片之后,使用ctrl+alt+v粘贴到vscode的时候,图片将自动保存到你设置的文件夹里,链接格式也已经帮你转换好了.</p>
<h4 id="git设置"><a href="#git设置" class="headerlink" title="git设置"></a>git设置</h4><p>这时候图片还在本地文件夹保存着,但是链接是远程仓库的链接,还是访问不了图片的,现在就是要把图片文件夹同步到远程仓库.</p>
<p>这里远程仓库我使用的是国内的coding,本来想用gitee的,但是gitee的访问好像有点问题,所以只好用coding了.我在使用gitee的时候,本地的预览无法显示出图片,但是直接将链接粘贴到浏览器是可以访问的,将文章发布到博客之后,我在gitee和github都部署了博客,结果gitee的无法显示出图片,github的可以,Interesting!</p>
<h5 id="远程仓库设置"><a href="#远程仓库设置" class="headerlink" title="远程仓库设置"></a>远程仓库设置</h5><ol>
<li>在coding注册登录</li>
<li>在coding创建一个公开的仓库</li>
<li>将sshkey公钥添加到coding设置里</li>
<li>复制仓库的链接备用</li>
</ol>
<h5 id="本地仓库设置"><a href="#本地仓库设置" class="headerlink" title="本地仓库设置"></a>本地仓库设置</h5><ol>
<li>到上面Paste Image里面设置的文件夹路径下打开终端,执行以下命令.</li>
</ol>
<figure class="highlight sh"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># 初始化仓库</span></span><br><span class="line">git init</span><br><span class="line"></span><br><span class="line"><span class="comment"># 与远程仓库关联</span></span><br><span class="line">git remote add origin your-repo-url(这就是上面复制的仓库链接)</span><br><span class="line"></span><br><span class="line"><span class="comment"># 拉取远程仓库的内容</span></span><br><span class="line">git pull origin master</span><br><span class="line"></span><br><span class="line"><span class="comment"># 在文件夹放一个测试图片,将本地仓库的内容推送到远程仓库并绑定</span></span><br><span class="line">git push --set-upstream origin master</span><br><span class="line"></span><br><span class="line"><span class="comment"># 以后每次上传时候的三部曲</span></span><br><span class="line">git add .</span><br><span class="line">git commit -m <span class="string">&#x27;update&#x27;</span></span><br><span class="line">git push</span><br></pre></td></tr></table></figure>
<p>现在图片已经上传到远程仓库了,现在到远程仓库点击那张图片,点击右上角的原始数据,这个时候浏览器上地址栏的链接就是这张图片的外链了,这个链接除了文件名之外的部分就是上面要设置的<em>Paste Image: Insert Pattern(粘贴的链接格式)</em>中的<em>your_url</em>的部分.</p>
<h5 id="自动上传脚本"><a href="#自动上传脚本" class="headerlink" title="自动上传脚本"></a>自动上传脚本</h5><p>到现在为止,在markdown中添加图片的步骤就是:</p>
<ol>
<li>复制图片</li>
<li>使用ctrl+alt+v粘贴链接到vscode</li>
<li>使用上传三部曲,上传图片</li>
</ol>
<p>但是每次都要打开终端,进入那个目录,执行三条命令进行上传,实在是太麻烦了,所以我自己又写了一个脚本,自动上传图片.我使用的是Python,需要依赖gitpython库.</p>
<figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">#! /usr/bin/python3</span></span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> git</span><br><span class="line"></span><br><span class="line">pushPath = <span class="string">&quot;你的图片文件夹的绝对路径&quot;</span></span><br><span class="line"></span><br><span class="line">repo = git.Repo(pushPath)</span><br><span class="line">origin = repo.remote(name=<span class="string">&quot;origin&quot;</span>)</span><br><span class="line"></span><br><span class="line"><span class="function"><span class="keyword">def</span> <span class="title">autoPush</span>():</span></span><br><span class="line">    repo.git.add(<span class="string">&quot;.&quot;</span>)</span><br><span class="line">    repo.git.commit(m=<span class="string">&quot;update&quot;</span>)</span><br><span class="line">    origin.push()</span><br><span class="line"></span><br><span class="line"><span class="keyword">if</span> __name__ == <span class="string">&quot;__main__&quot;</span>:</span><br><span class="line">    autoPush()</span><br></pre></td></tr></table></figure>
<p>授予此脚本执行权限,然后把它绑定到一个快捷键,然后每次就可以直接按一下快捷键自动上传了.</p>

        
            <div class="donate-container">
    <div class="donate-button">
        <button id="donate-button">赞赏</button>
    </div>
    <div class="donate-img-container hide" id="donate-img-container">
        <img id="donate-img" src="" data-src="/img/donate.jpg">
        <p> 感谢鼓励 </p>
    </div>
</div>
        
        <br />
        <div id="comment-container">
        </div>
        <div id="disqus_thread"></div>

        <div id="lv-container">
        </div>

    </div>
</div>

    </div>
</div>


<footer class="footer">
    <ul class="list-inline text-center">
        
        

        

        

        

        

    </ul>
    
    <p>
        <span id="busuanzi_container_site_pv">
            <span id="busuanzi_value_site_pv"></span>PV
        </span>
        <span id="busuanzi_container_site_uv">
            <span id="busuanzi_value_site_uv"></span>UV
        </span>
        Created By <a target="_blank" rel="noopener" href="https://hexo.io/">Hexo</a>  Theme <a target="_blank" rel="noopener" href="https://github.com/aircloud/hexo-theme-aircloud">AirCloud</a></p>
</footer>




<script type="text/x-mathjax-config">
    MathJax.Hub.Config({
        tex2jax: {
            inlineMath: [ ["$","$"], ["\\(","\\)"] ],
            skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code'],
            processEscapes: true
        }
    });
    MathJax.Hub.Queue(function() {
        var all = MathJax.Hub.getAllJax();
        for (var i = 0; i < all.length; ++i)
            all[i].SourceElement().parentNode.className += ' has-jax';
    });
</script>
<script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
</body>

<script>
    // We expose some of the variables needed by the front end
    window.hexo_search_path = "search.json"
    window.hexo_root = "/"
    window.isPost = true
</script>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>

<script src="/js/index.js"></script>

<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>




</html>
